﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Equipment.Business" %>
<table class="data-table">
    <thead>
        <tr>
            <th>
                Notification Name
            </th>
            <th>
                Trigger
            </th>
            <th>
                Edit
            </th>
        </tr>
    </thead>
    <tbody>
        <% For Each item In ViewData("Notifications")%>
        <tr>
            <td>
                <%: item.Description%>
            </td>
            <td>
                <%: NotificationTriggerLookup.GetDescriptionByType(item.NotificationTrigger)%>
            </td>
            <td>
                <%: Html.ActionLink("Edit", "Edit", New With {.id = item.ID})%>
            </td>
        </tr>
        <% Next%>
    </tbody>
</table>
